﻿CREATE TABLE [dbo].[CategoriaNegocio](
	[id_cat_neg] [int] IDENTITY(1,1) NOT NULL,
	[id_cat] [int] NULL,
	[id_negocio] [int] NULL,
 CONSTRAINT [PK_CategoriaNegocio] PRIMARY KEY CLUSTERED 
(
	[id_cat_neg] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object:  ForeignKey [FK_CategoriaNegocio_Categoria]    Script Date: 11/12/2012 16:56:27 ******/
ALTER TABLE [dbo].[CategoriaNegocio]  WITH CHECK ADD  CONSTRAINT [FK_CategoriaNegocio_Categoria] FOREIGN KEY([id_cat])
REFERENCES [dbo].[Categoria] ([id_categ])
GO

ALTER TABLE [dbo].[CategoriaNegocio] CHECK CONSTRAINT [FK_CategoriaNegocio_Categoria]
GO
/****** Object:  ForeignKey [FK_CategoriaNegocio_Negocio]    Script Date: 11/12/2012 16:56:27 ******/
ALTER TABLE [dbo].[CategoriaNegocio]  WITH CHECK ADD  CONSTRAINT [FK_CategoriaNegocio_Negocio] FOREIGN KEY([id_negocio])
REFERENCES [dbo].[Negocio] ([id_negocio])
GO

ALTER TABLE [dbo].[CategoriaNegocio] CHECK CONSTRAINT [FK_CategoriaNegocio_Negocio]